import fetch from '@/utils/fetch';

export function login(name, pwd) {
    const params = {
        name,
        pwd
    };
    return fetch({
        url: '/common/admin/login',
        method: 'post',
        params
    });
}

export function logout() {
    return fetch({
        url: '/common/admin/logout',
        method: 'post'
    });
}


export function changePwd(data) {
    return fetch({
        url: '/common/admin/changepwd',
        method: 'post',
        data
    });
}




